<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link href="/res/back/css/base.css" rel="stylesheet" type="text/css" />
    <link href="/res/third/bootstrap3/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="/res/third/select2/css/select2.css" rel="stylesheet" type="text/css" />
    <script src="/res/common/js/jquery.1.9.1.min.js" type="text/javascript"></script>
    <script src="/res/third/bootstrap3/bootstrap.autocomplete.js" type="text/javascript"></script>
    <script src="/res/third/artDialog/jquery.artDialog.js" type="text/javascript"></script>
    <script src="/res/third/validate/jquery.validate.js" type="text/javascript"></script>
    <script src="/res/third/easyUI/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="/res/third/easyUI/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <script src="/res/third/easyUI/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <script src="/res/third/select2/js/select2.js" type="text/javascript"></script>
    <script type="text/javascript" src="/res/third/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" src="/res/third/ueditor/ueditor.all.js"></script>
    <script type="text/javascript" src="/res/third/ueditor/lang/zh-cn/zh-cn.js"></script>
    <script type="text/javascript" src="/res/back/js/entrust/notes/edit.js"></script>
    <script type="text/javascript" src="/res/common/js/jquery.form.js"></script>
    <script type="text/javascript" src="/res/third/nice-validator/jquery.validator.js?local=zh-CN"></script>
</head>
<body>
    <div class="panel panel-info">
        <div class="panel-heading">委托服务管理</div>
        <div class="panel-body">
            <form id="form" class="form-horizontal" action="/entrust/notes/save.do" method="post">
                <input type="hidden" name="id" value="${(note.id)!}">
                <div class="form-group" style="margin-top: 10px;">
                    <label class="col-sm-2 control-label">委托类型</label>
                    <div class="col-sm-3">
                        <select class="form-control" name="applyType">
                            <option value="1">委托设计</option>
                            <option value="2" [#if note?? && (note.applyType!1) == 2]selected[/#if]>委托采购</option>
                        </select>
                    </div>
                    <div class="col-sm-7"></div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">企业名称</label>
                    <div class="col-sm-3">
                        [#if note??]
                        <input type="hidden" name="companyId" value="${note.companyId!}">
                        ${note.companyName!}
                        [#else]
                        <select id="companyName" name="companyId" class="form-control" data-target="#companyIdHoldMsg">
                            [#if note??] <option value="${note.companyId!}">${note.companyName!}</option>[/#if]
                        </select>
                        [/#if]
                    </div>
                    <div class="col-sm-7">
                        <span class="msg-box" id="companyIdHoldMsg"></span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">采购金额</label>
                    <div class="col-sm-3">

                        <div class="input-group">
                            <div class="input-group-addon">￥</div>
                            <input type="text" class="form-control" name="amount" value="${(note.amount)!}" data-target="#amountHoldMsg" placeholder="采购金额">
                            <div class="input-group-addon">元</div>
                        </div>
                    </div>
                    <div class="col-sm-7"><span class="msg-box" id="amountHoldMsg"></span></div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">联系人</label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control" name="contactName" data-target="#contactNameHoldMsg" value="${(note.contactName)!}" placeholder="联系人">
                    </div>
                    <div class="col-sm-7"><span class="msg-box" id="contactNameHoldMsg"></span></div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">电话</label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control" name="contactTel" data-target="#contactTelHoldMsg" value="${(note.contactTel)!}" placeholder="电话">
                    </div>
                    <div class="col-sm-7"><span class="msg-box" id="contactTelHoldMsg"></span></div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">备注</label>
                    <div class="col-sm-3">
                        <textarea class="form-control" name="memo" rows="3">${(note.memo)!}</textarea>
                    </div>
                    <div class="col-sm-7"></div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-info">提交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</body>
</html>